#pragma once

#include <QGraphicsPixmapItem>
#include <QObject>

class Pixmap : public QObject, public QGraphicsPixmapItem
{
	Q_OBJECT
	Q_PROPERTY(QPointF pos READ pos WRITE setPos)
	Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity)
public:
	Pixmap(const QPixmap &pix)
		: QObject(), QGraphicsPixmapItem(pix)
	{
		setCacheMode(DeviceCoordinateCache);
	}
};